package com.jindy.module.oaContractApply.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.oaContractApply.mapper.SyContractInfoOtherMapper;
import com.jindy.module.oaContractApply.domain.SyContractInfoOther;
import com.jindy.module.oaContractApply.service.ISyContractInfoOtherService;

/**
 * 对方合同信息Service业务层处理
 * 
 * @author jindy
 * @date 2023-06-29
 */
@Service
public class SyContractInfoOtherServiceImpl implements ISyContractInfoOtherService 
{
    @Autowired
    private SyContractInfoOtherMapper syContractInfoOtherMapper;

    /**
     * 查询对方合同信息
     * 
     * @param id 对方合同信息主键
     * @return 对方合同信息
     */
    @Override
    public SyContractInfoOther selectSyContractInfoOtherById(Long id)
    {
        return syContractInfoOtherMapper.selectSyContractInfoOtherById(id);
    }

    /**
     * 查询对方合同信息列表
     * 
     * @param syContractInfoOther 对方合同信息
     * @return 对方合同信息
     */
    @Override
    public List<SyContractInfoOther> selectSyContractInfoOtherList(SyContractInfoOther syContractInfoOther)
    {
        return syContractInfoOtherMapper.selectSyContractInfoOtherList(syContractInfoOther);
    }

    /**
     * 新增对方合同信息
     * 
     * @param syContractInfoOther 对方合同信息
     * @return 结果
     */
    @Override
    public int insertSyContractInfoOther(SyContractInfoOther syContractInfoOther)
    {
        return syContractInfoOtherMapper.insertSyContractInfoOther(syContractInfoOther);
    }

    /**
     * 修改对方合同信息
     * 
     * @param syContractInfoOther 对方合同信息
     * @return 结果
     */
    @Override
    public int updateSyContractInfoOther(SyContractInfoOther syContractInfoOther)
    {
        return syContractInfoOtherMapper.updateSyContractInfoOther(syContractInfoOther);
    }

    /**
     * 批量删除对方合同信息
     * 
     * @param ids 需要删除的对方合同信息主键
     * @return 结果
     */
    @Override
    public int deleteSyContractInfoOtherByIds(Long[] ids)
    {
        return syContractInfoOtherMapper.deleteSyContractInfoOtherByIds(ids);
    }

    /**
     * 删除对方合同信息信息
     * 
     * @param id 对方合同信息主键
     * @return 结果
     */
    @Override
    public int deleteSyContractInfoOtherById(Long id)
    {
        return syContractInfoOtherMapper.deleteSyContractInfoOtherById(id);
    }

    @Override
    public List<SyContractInfoOther> selectSyContractInfoOtherListByIds(Long[] ids) {
        return syContractInfoOtherMapper.selectSyContractInfoOtherListByIds(ids);
    }
}
